package com.sanyue.future;

/**
 * @author sanyue
 * @version 1.0
 * @description: TODO
 * @date 2022/2/25 下午7:25
 */
public class Sington {
    private volatile static Sington uniqueInstance;

    private Sington(){

    }

    public static Sington getUniqueInstance(){
        if(uniqueInstance == null){
            synchronized(Sington.class){
                if(uniqueInstance == null) {
                    uniqueInstance = new Sington();
                }
            }
        }
        return  uniqueInstance;
    }

}
